<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="white" />
		<meta name="format-detection" content="telephone=no" />
		<meta http-equiv="x-rim-auto-match" content="none" />
		<title>拨云见日科技</title>
		<link rel="SHORTCUT ICON" href="/static/favicon.ico" type="image/x-icon"/>
		<script src='/static/js/jquery.js' type='text/javascript'></script>
		<script src='/static/js/qrcode.js' type='text/javascript'></script>
		<script src='/static/js/layui.js' type='text/javascript'></script>
		<link href="/static/css/index.css" rel="stylesheet" type="text/css" />
		<link href="/static/css/layui.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		{% include "base.html" %}
		<div class="wrapper">
			<div class="wrapper_cont">
				<dl class='product_list' style="width: 90%">
					<dd style="">
						{{split(data,",")[1]}}&nbsp;&nbsp;<span id="time"></span>
					</dd>
				</dl>
				<dl class='product_list' style="width: 90%" id="rs">

				</dl>
				{% include "right.html" %}
			</div>
		</div>
	</body>
	<script type='text/javascript'>
		var time = 30;
		var isload = false;
		var param = "{{getSession('robot_id')}}"
		$(function(){
			getValue();
			// getTime();
			loadData();
		})


		function getTime(){
		    $("#time").html(time+"秒");
		    time--;
		    if(time<0){
				var robot_id = "{{getSession('robot_id')}}"
		    	setTimeout(function(){
					 location.href = "index.html?data="+robot_id
				},1000)
			}
		    if(!isload){
		    	setTimeout(getTime,1000);
			}else{
		    	$("#time").html("");
			}
        }

        function loadData(){
			var request_id = '{{split(data,",")[0]}}';
			var action = $("#mm").attr("action")
			var sql = "select remark from byjr_requestpool where id="+request_id
			$.post(action,{sql:sql},function(result) {
				result = JSON.parse(result);
				$("#rs").append("<img src='http://139.196.175.131:6003/static/IQCC2021Jul02172336.png'>")
			})
		}

        function getValue(){
		    v = document.getElementById('v').value;
		    if(commFun(v,param)){
		    	return;
			}
			document.getElementById('v').value = "";
			$("#v").focus();
            setTimeout(getValue,1000);
        }
	</script>
	{% include "footer.html" %}
</html>
